package com.zejson.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@Scope("prototype")
@RequestMapping("test")
public class TestController {

    @RequestMapping("/add_driver")
    public ModelAndView addDriver() {
        return new ModelAndView("/templates/driver/add_driver");
    }

    @RequestMapping("test_1")
    public ModelAndView test_1() {
        return new ModelAndView("truck_team");
    }

    @RequestMapping("test_2")
    public ModelAndView test_2() {
        return new ModelAndView("truck");
    }

    @RequestMapping("test_3")
    public ModelAndView test_3() {
        return new ModelAndView("/templates/data_table");
    }
}
